package edu.chl.jadetalk.business;

import edu.chl.jadetalk.core.Image;
import edu.chl.jadetalk.core.User;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Erik
 */

@Local
public interface ImageManagerBeanLocal {
            
    /**
     * Stores the Image object in the database.
     * @param image the image to store
     * @return true if successful
     */
    public void storeImage(Image image);

    public List<Image> listImages();

    public List<Image> listImagesRange(int[] range);
    
    public Image getImage(long id);
    
    public void createCommentOnImage(User user, String text, Image image);
    
    public void createRatingOnImage(User user, Image image, double rating);
}
